package com.gsnd.gsnd22estore.service.impl;

import com.gsnd.gsnd22estore.domain.EsCategory;
import com.gsnd.gsnd22estore.dto.extend.CategoryExtend;
import com.gsnd.gsnd22estore.mapper.EsCategoryMapper;
import com.gsnd.gsnd22estore.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryServiceImpl implements CategoryService {

    @Autowired
    EsCategoryMapper categoryMapper;
    @Override
    public List<CategoryExtend> findAllCategory() {
        return categoryMapper.selectAll();
    }
}
